<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="DataBase.Reset"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	ArrayList<Reset> res = (ArrayList<Reset>) request
			.getAttribute("ss");
	//if(res != null)
	//	out.print("meiyou du dao shuju ");
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'reset.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	
	<%
				String ddd = (String) request.getAttribute("result");
				if (ddd != null) {
					if (ddd.equals("yes"))
						out.print("<script type=\"text/javascript\">alert(\""
								+ "删除成功！" + "\")</script>");
					else
						out.print("<script type=\"text/javascript\">alert(\""
								+ "删除失败！" + "\")</script>");
				}
			%>
	
	</head>

	<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>

	<link href="images/skin.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}

.STYLE7 {
	font-size: 12
}
-->
</style>
	<body>
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=“utf-8" />
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" valign="top"
					background="<%=path%>/Jsp/images/mail_leftbg.gif">
					<img src="<%=path%>/Jsp/images/left-top-right.gif" width="17"
						height="29" />
				</td>
				<td valign="top" background="<%=path%>/Jsp/images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt STYLE1">
									当前位置：修改任务
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top"
					background="<%=path%>/Jsp/images/mail_rightbg.gif">
					<img src="<%=path%>/Jsp/images/nav-right-bg.gif" width="16"
						height="29" />
				</td>
			</tr>
			<tr>
				<td valign="middle"
					background="<%=path%>/Jsp/images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="98%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="100%" height="40">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr>
										<td width="935" valign="top" bgcolor="#F7F8F9">
											<table width="100%" height="138" border="0" cellpadding="0"
												cellspacing="0">
												<td class="left_txt">
													&nbsp;
												</td>


												<tr>
													<td valign="top">
														<table width="98%" border="0" align="center"
															cellpadding="0" cellspacing="0">
															<tr>
																<td class="left_txt">
																	&nbsp;
																</td>
															</tr>
															<tr>
																<td>
																	<table width="100%" height="31" border="0"
																		cellpadding="0" cellspacing="0" class="nowtable">
																		<tr>
																			<td class="left_bt2">
																				<table width="100%" border="0" cellpadding="0"
																					cellspacing="1" bgcolor="#DDDAFE"
																					onMouseOver="changeto()" onmouseout="changeback()">
																					<tr>
																						<td width="9%"
																							background="<%=path%>/Jsp/images/test.jpg"
																							class="STYLE1">
																							<div align="center">
																								任务名
																							</div>
																						</td>
																						<td width="9%"
																							background="<%=path%>/Jsp/images/test.jpg"
																							class="STYLE1">
																							<div align="center">
																								主机名
																							</div>
																						</td>
																						<td width="14%" height="26"
																							background="/website/images/a.jpg" class="STYLE1">
																							<div align="center" class="STYLE2 STYLE1">
																								数据源ip地址
																							</div>
																						</td>
																						<td width="9%" height="26"
																							background="/website/images/a.jpg" class="STYLE1">
																							<div align="center" class="STYLE2">
																								源路径
																							</div>
																						</td>
																						<td width="13%" background="/website/images/a.jpg"
																							class="STYLE1">
																							<div align="center">
																								下次备份时间
																							</div>
																						</td>
																						<td width="12%" background="/website/images/a.jpg"
																							class="STYLE1">
																							<div align="center">
																								备份频率
																							</div>
																						</td>
																						<td width="9%" background="/website/images/a.jpg"
																							class="STYLE1">
																							<div align="center" class="STYLE2 STYLE10">
																								修改
																							</div>
																						</td>
																						<td width="11%" background="/website/images/a.jpg"
																							class="STYLE1">
																							<div align="center">
																								删除
																							</div>
																						</td>
																					</tr>


																					<%
																						for (Reset var : res) {
																					%>

																					<tr>
																						<td bgcolor="#F8F9FA">
																							<div align="center">
																								<%=var.getAsmt_name()%>
																							</div>
																						</td>
																						<td bgcolor="#F8F9FA">
																							<div align="center">
																								<%=var.getDs_hostname()%>
																							</div>
																						</td>
																						<td height="18" bgcolor="#F8F9FA">
																							<div align="center" class="STYLE2 STYLE1">
																								<%=var.getDs_IP()%>
																							</div>
																						</td>
																						<td height="18" bgcolor="#F8F9FA">
																							<div align="center">
																								<%=var.getAsmt_path()%>
																							</div>
																						</td>
																						<td bgcolor="#F8F9FA">
																							<div align="center" class="STYLE2 STYLE1">
																								<%=var.getAsmt_next()%>:<%=var.getAsmt_time()%>
																							</div>
																						</td>
																						<td bgcolor="#F8F9FA">
																							<div align="center">
																								<%=var.getAsmt_frequency()%>
																							</div>
																						</td>
																						<td bgcolor="#F8F9FA">
																							<div align="center" class="STYLE10">
																								<span class="STYLE2"><a
																									href="<%=path%>/servlet/Reset_addServlet?ds_ID=<%=var.getDs_ID()%>">[修改]</a>
																								</span>
																							</div>
																						</td>
																						<td bgcolor="#F8F9FA">
																							<div align="center">
<!--																								<input type="button" -->
<!--																									onclick="javascript:alert('ss')" value="删除">-->
																								<a href="<%=path%>/servlet/ResetManagerDelservlet?ds_ID=<%=var.getDs_ID()%>" target="mainFrame">[删除]</a>								
																							</div>
																						</td>
																					</tr>

																					<%
																						}
																					%>




																				</table>
																			</td>
																		</tr>
																	</table>
																</td>
															</tr>
															<tr>
																<td height="13">
																	<table width="100%" border="0" cellspacing="0"
																		cellpadding="0">
																		<tr>
																			<td width="15" height="29">
																				<img width="8" height="29"
																					style="background-color: #F8F9FA" />
																			</td>
																			<td background="<%=path%>/Jsp/images/tab_21.gif">
																				<table width="100%" border="0" cellspacing="0"
																					cellpadding="0">
																					<tr>
																						<td width="25%" height="29" nowrap="nowrap">
																							<span class="STYLE1">共120条纪录，当前第1/10页，每页10条纪录</span>
																						</td>
																						<td width="75%" valign="top" class="STYLE1">
																							<div align="right">
																								<table width="352" height="22" border="0"
																									cellpadding="0" cellspacing="0">
																									<tr>
																										<td height="22" valign="middle">
																											<div align="right">
																												<label for="Submit"></label>
																												<input type="submit" name="Submit"
																													value="首页" id="Submit" />
																											</div>
																										</td>
																										<td height="22" valign="middle">
																											<div align="right">
																												<label for="label"></label>
																												<input type="submit" name="Submit2"
																													value="上一页" id="label" />
																											</div>
																										</td>
																										<td height="22" valign="middle">
																											<div align="right">
																												<label for="label2"></label>
																												<input type="submit" name="Submit3"
																													value="下一页" id="label2" />
																											</div>
																										</td>
																										<td height="22" valign="middle">
																											<div align="right">
																												<label for="label3"></label>
																												<input type="submit" name="Submit4"
																													value="尾页" id="label3" />
																											</div>
																										</td>
																										<td height="22" valign="middle">
																											<div align="right">
																												转到第
																											</div>
																										</td>
																										<td height="22" valign="middle">
																											<span class="STYLE7"> <input
																													name="textfield" type="text" class="STYLE1"
																													style="height: 22px; width: 40px;" size="5" />
																											</span>
																										</td>
																										<td height="22" valign="middle">
																											页
																										</td>
																										<td height="22" valign="middle">
																											<label for="label4"></label>
																											<div align="right">
																												<input type="submit" name="Submit5"
																													value="-&gt;转" id="label4" />
																											</div>
																											<div align="left"></div>
																										</td>
																									</tr>
																								</table>
																							</div>
																						</td>
																					</tr>
																				</table>
																			</td>
																			<td width="14">
																				&nbsp;
																			</td>
																		</tr>
																	</table>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>

									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
				<td background="<%=path%>/Jsp/images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="bottom"
					background="<%=path%>/Jsp/images/mail_leftbg.gif">
					<img src="<%=path%>/Jsp/images/buttom_left2.gif" width="17"
						height="17" />
				</td>
				<td background="<%=path%>/Jsp/images/buttom_bgs.gif">
					<img src="<%=path%>/Jsp/images/buttom_bgs.gif" width="17"
						height="17">
				</td>
				<td valign="bottom"
					background="<%=path%>/Jsp/images/mail_rightbg.gif">
					<img src="<%=path%>/Jsp/images/buttom_right2.gif" width="16"
						height="17" />
				</td>
			</tr>
		</table>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
		
		</body>
</html>
